import request from '../utils/request'

export function getData<T>() {
  return request<T>({
    url: '/statistics',
    method: 'GET'
  })
}

export function getLeftData<T>() {
  return request<T>({
    url: '/statistics/redAndblackdistribution',
    method: 'GET'
  })
}

export function getRightData<T>() {
  return request<T>({
    url: '/statistics/measureRanking',
    method: 'GET'
  })
}

export function tableData<T>(page: number, row: number) {
  return request<List<T>>({
    url: '/statistics/reportstatistics?page=' + page + '&row=' + row,
    method: 'GET'
  })
}
